time: 2021.3
# -*- coding: utf-8 -*-
# @Time    : 2021/4/9 22:13
# @Author  : luogan
# @Email   : 468640092@qq.com
# @File    : 生成MAC地址.py
# @Software: PyCharm.
import random
with open("test.txt","w+",encoding="utf-8") as f:
    for i in range(100):
        num1 = "01-AF-3B"
        lst = ["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
        char1 = "".join(random.sample(lst,2))
        char2 = num1+"-"+char1+"-"+char1+"-"+char1
        f.write(f'{char2}\n')

